﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;

namespace ThreeByte.ActiveDeck.Config
{
    public class PropertyBinder
    {
        private PropertyDescriptor PropDescriptor;
        private object Instance;

        public PropertyBinder(object instance, PropertyDescriptor descriptor) {
            Instance = instance;
            PropDescriptor = descriptor;
        }

        public string Name {
            get {
                return PropDescriptor.Name;
            }
        }

        public object Value {
            get {
                return PropDescriptor.GetValue(Instance);
            }
        }

    }
}
